package com.dianplus.biz.config.annotation;

import com.dianplus.biz.config.CustomLiquibaseConfiguration;
import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 在启动类上添加该注解来 -自动开启liquibase
 * jiangnan 2019/10/16
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(CustomLiquibaseConfiguration.class)
@EnableConfigurationProperties(LiquibaseProperties.class)
public @interface EnableLiquibaseConfiguration {
}
